<template>
	<view><menuBox :menuInfo="menuInfo"></menuBox></view>
</template>

<script>
import menuBox from '@/wxcomponents/commonLayout/menu';
import common from '@/libs/login.js';
import userMixins from '@/libs/userMixins.js'
export default {
	mixins: [userMixins],
	//roleType 0-班主任,1-老师,2-学生,3-家长,4-教务主任,5-部门主任,6-校领导,7-报修专员
	data() {
		return {
			menuInfo: {
				base: {
					menuProp: ['name']
				},
				list: []
			},
		};
	},
	async onLoad() {
		let list = [
			{
				name: '学生考勤管理',
				url: '/modules/attendance/stuClockManage'
			},
			{
				name: '教师考勤管理',
				url: '/modules/attendance/teacherClockManage'
			},
			{
				name: '教学日志管理',
				url: '/modules/teachLog/list?type=read'
			},
			{
				name: '查寝信息',
				url: '/modules/dorm/info' 
			},
			{
				name: '点名记录',
				url: '/modules/classRollCall/recordList'
			}
		]
		this.menuInfo.list = this.getHaveOpList(list);
	},
	methods: {
		
	},
	components: {
		menuBox
	}
};
</script>

<style lang="scss" scoped></style>
